<template>
  <div class="container van-hairline--top">
    <div class="content-box">
      <div class="head-box">
        <div class="img-box">
          <img
            :src="info.portrait?info.portrait:'https://gw.alicdn.com/tfs/TB15Q0lOmzqK1RjSZFHXXb3CpXa-400-400.png'"
            width="100%"
            height="100%"
            alt
          >
        </div>
        <p>{{info.user_name}}</p>
      </div>
      <div class="form-box">
        <van-cell-group>
          <van-cell title="我报名的" @click="onClick">
            <img
              class="img-icon"
              slot="icon"
              src="https://gw.alicdn.com/tfs/TB11bRlOb2pK1RjSZFsXXaNlXXa-48-48.png"
            >
            <i slot="right-icon" class="iconfont icon-gengduo"></i>
          </van-cell>
        </van-cell-group>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: "",
      info: {}
    };
  },
  methods: {
    onClick() {
      this.$router.push({
        path: "/MyJoin"
      });
    }
  },
  created() {},
  mounted() {
    if (localStorage.getItem("source") == "dd") {
      this.info = JSON.parse(localStorage.getItem("user"));
    } else {
      let info = JSON.parse(localStorage.getItem("users"));
      this.info.portrait = info.headimgurl;
    }
  }
};
</script>

<style lang="scss" scoped>
@import "ActivityMy";
</style>

